package com.engine.api.dckj.ranking.service.impl;


import com.engine.api.dckj.ranking.entity.RankingInfo;
import com.engine.api.dckj.ranking.service.RankingService;
import weaver.conn.RecordSet;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


public class RankingServiceImpl implements RankingService {

    @Override
    public List<RankingInfo> getList(String userIds, String type) {
        RecordSet recordSet = new RecordSet();
        String sql = "";
        List<RankingInfo> list = new ArrayList<>();
        if(type.equals("averageWorkingHoursOfMonth")){// 月度 - 平均工时

            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("businessTripDaysOfMonth")){// 月度 - 出差天数
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("completeOfMonth")){// 月度 - 工单完成时效
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("numberOfMonth")){// 月度 - 工单接单数量
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("incompleteOfMonth")){// 月度 - 工单未完成数量
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("averageWorkingHoursOfYear")){// 年度- 平均工时
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("businessTripDaysOfYear")){// 年度- 出差天数
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("completeOfYear")){// 年度- 工单完成时效
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("numberOfYear")){// 年度- 工单接单数量
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        if(type.equals("incompleteOfYear")){// 年度- 工单未完成数量
            recordSet.executeQuery(sql);
            while(recordSet.next()){
                RankingInfo info = new RankingInfo();
                list.add(info);
            }
        }
        return Collections.emptyList();
    }
}
